package com.csx.base.design.behavior.chainOfResponsibility;

/**
 * @author cuisongxu
 * @date 2022/9/28 12:05
 */
public class Client {

    public static void main(String[] args) {
        Approver approver = new Staff("张飞");
        approver.setNextApprover(new Manager("关羽")).setNextApprover(new CFO("刘备"));

        approver.approve(1000);
        approver.approve(4000);
        approver.approve(9000);
        approver.approve(12000);
    }
}
